package com.hksj.slm.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author fjt
 * @data 2024/8/22 15:18
 * @describe 统计指定房间中各回路的照明时长
 */
@ColumnWidth(25)
@ContentRowHeight(20)
@HeadRowHeight(30)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LightingDurationVO implements Serializable {

    private static final long serialVersionUID = 8156641189204034528L;

    @ApiModelProperty("楼栋id")
    private Long buildingId;

    @ExcelProperty(value = "楼栋名称", index = 0)
    @ApiModelProperty("楼栋名称")
    private String buildingName;

    @ApiModelProperty("楼层id")
    private Long floorId;

    @ExcelProperty(value = "楼层名称", index = 1)
    @ApiModelProperty("楼层名称")
    private String floorName;

    @ApiModelProperty("科室编码")
    private String departmentItemValue;

    @ExcelProperty(value = "科室名称", index = 2)
    @ApiModelProperty("科室名称")
    private String departmentItemValueName;

    @ApiModelProperty("房间id")
    private Long roomId;

    @ExcelProperty(value = "房间名称", index = 3)
    @ApiModelProperty("房间名称")
    private String roomName;

    @ApiModelProperty("设备id")
    private String deviceId;

    @ExcelProperty(value = "开关控制器名称", index = 4)
    @ApiModelProperty("设备名称")
    private String deviceName;

    @ApiModelProperty(value = "点位id", hidden = true)
    private Long pointId;

    @ApiModelProperty(value = "点位名称", hidden = true)
    private String pointName;

    @ApiModelProperty("回路code")
    private String property;

    @ExcelProperty(value = "开关控制器点位(回路)", index = 5)
    @ApiModelProperty("回路code名称")
    private String propertyName;

    @ExcelProperty(value = "累计照明时长(小时)", index = 6)
    @ApiModelProperty("照明时长(小时)")
    private BigDecimal duration;

    @ApiModelProperty(value = "开启时间", hidden = true)
    private Date openTime;

    @ApiModelProperty(value = "关闭时间", hidden = true)
    private Date closeTime;

    @ApiModelProperty(value = "连续照明时长(秒)", hidden = true)
    private Long durationLong;



}
